home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-04-25 | 14.1 KB | 415 lines | [TEXT/EDIT] |
- # Generated automatically from Makefile.in by configure.
- #
- # RLaB Makefile.in
- #
-
- # Don't modify
- DEFS = -DHAVE_CONFIG_H
- SHELL = /bin/sh
-
- # The name of your C compiler
- CC = gcc
-
- # The name of your Fortran compiler (ususally f2c)
- F2C = f2c
-
- # The flags to pass along to the C compiler
- CFLAGS = -g
-
- # The name of the parser generator, bison or byacc is preffered.
- YACC = bison -y
- YFLAGS = -vdtl
-
- # This must be flex, if flex is not available, leave it blank
- LEX = flex
-
- # This should be a "new" AWK (not necessary)
- AWK = mawk
-
- # This must be the name of a GNU tar program (not necessary)
- TAR = gtar
-
- # The name of an install program, either install(1), or cp(1)
- INSTALL = cp
- INSTALL_PROGRAM = $(INSTALL)
-
- # File name extension used for archive library files (DON'T include leading ".")
- A = a
-
- # File name extension used for object files (DON'T include leading ".")
- O = o
-
- # File name extension used for executable files (INCLUDING the dot, ".")
- EXE =
-
- #
- # The place to look for libraries on the system
- #
- LLIBS = -L/usr/local/lib
-
- #
- # These are the libraries (all of them). The following are REQUIRED.
- # If configure does not find them then type in their location as well
- # as the library names in the following order. Example:
- # NALIBS = -L/usr/my/lib -lClapack -lCblas -lCfftpack -lCranlib
- #
- # -lClapack LAPACK library
- # -lCblas BLAS library
- # -lCfftpack FFTPACK library (double precision version)
- # -lCranlib RANLIB (random number generation)
- #
- NALIBS = -lClapack -lCblas -lCfftpack -lCranlib
-
- #
- # The F2C libraries are REQUIRED
- # FLIBS = -L/usr/my/lib -lF77 -lI77
- #
- FLIBS = -lF77 -lI77
-
- # The readline library (and -ltermcap) should be present if you have
- # defined HAVE_READLINE in config.h.
- # CMDLIBS = -lreadline -ltermcap
- #
- #
- CMDLIBS = -L/usr/local/lib -lreadline -ltermcap
-
- #
- # The PLPLOT library if you wish to use PLPLOT graphics.
- # Note that you need the double version of PLPLOT.
- # You should have HAVE_RLAB_PLPLOT defined in config.h to
- # make this work.
- # PLIBS = -L/usr/local/plplot -lplplotdX -lX11
- # You may need some additional libs to support X11, for example:
- # PLIBS = -L/usr/local/plplot -lplplotdX -lX11 -lsocket -lnsl
- # is necessary for some SYSVr4 machines.
- #
- PLOT_PROG = plplot
- PLIBS = -L/usr/local/plplot -lplplotdX -lX11 -lsocket -lnsl
- INC_DIR = -I/usr/local/plplot/include
-
- #
- # Put the whole mess together
- #
-
- LIBS = $(LLIBS) $(NALIBS) $(FLIBS) $(CMDLIBS) $(PLIBS) -lm
-
- #
- # Any special flags you might need for your system
- #
-
- # Silicon Graphics machines need this for popen()
- # SPECIAL_FLAGS = -ansiposix
-
- SPECIAL_FLAGS = -DASSERT_OFF
-
- # prefix: The parent directory for the installation
- prefix = /usr/local
- exec_prefix = $(prefix)
- bindir = $(exec_prefix)/bin
- libdir = $(exec_prefix)/lib
- mandir = $(exec_prefix)/man/man1
-
- #
- # Don't change these without modifying the install actions
- #
-
- TOPDIR = $(libdir)/rlab
- RHELPDIR = $(TOPDIR)/help
- RLIBDIR = $(TOPDIR)/rlib
- DEFAULT_RC0 = $(TOPDIR)/.rlab
- TOOLBOX = $(TOPDIR)/toolbox
-
- #
- # The default RLaB search path. This path is searched when
- # the `help' and `rfile' commands are used. Users can
- # override this with the environment variable RLAB_SEARCH_PATH.
- #
-
- DEFAULT_SEARCH_PATH = ".:$(TOOLBOX)"
-
- #
- # The pager command that most users will want.
- # Usually this is pg, more, or less.
- #
-
- DEFAULT_PAGER = "more"
-
- #
- # Do not edit below this point until you have tried to make
- #
-
- DFLAGS = -DDEFAULT_RC0=\"$(DEFAULT_RC0)\" \
- -DDEFAULT_HELP=\"$(RHELPDIR)\" \
- -DDEFAULT_LIB=\"$(RLIBDIR)\" \
- -DDEFAULT_PAGER=\"$(DEFAULT_PAGER)\" \
- -DDEFAULT_SEARCH_PATH=\"$(DEFAULT_SEARCH_PATH)\"
-
- R_LIBS = $(LIBS)
-
- R_OBJ = main.$(O) rlab.$(O) lex.yy.$(O) init.$(O) code.$(O) \
- bltin1.$(O) bltin2.$(O) symbol.$(O) \
- list.$(O) listnode.$(O) op.$(O) opapp.$(O) \
- opmat.$(O) scalar.$(O) scop1.$(O) \
- matrix.$(O) matop1.$(O) matop2.$(O) complex.$(O) \
- function.$(O) r_string.$(O) trig.$(O) math_1.$(O) math_2.$(O) \
- math_3.$(O) mathl.$(O) fi_1.$(O) fi_2.$(O) rel.$(O) mem.$(O) util.$(O) \
- btree.$(O) diss.$(O) print.$(O) random.$(O) rfile.$(O) getline.$(O) \
- mm.$(O) misc.$(O) r_plot.$(O) bio.$(O) odei.$(O)
-
- R_SRC = main.c rlab.y scan.l init.c code.c bltin1.c bltin2.c symbol.c \
- list.c listnode.c op.c opapp.c \
- opmat.c scalar.c scop1.c \
- matrix.c matop1.c matop2.c complex.c \
- function.c r_string.c trig.c math_1.c math_2.c \
- math_3.c mathl.c fi_1.c fi_2.c rel.c mem.c util.c \
- btree.c diss.c print.c random.c rfile.c getline.c \
- mm.c misc.c r_plot.c bio.c odei.c
-
- F_SRC = lp.f bl.f ode.f
- F_OBJ = lp.$(O) bl.$(O) ode.$(O)
-
- ALLOCA =
- GNU_OBJ = getopt.$(O) getopt1.$(O) $(ALLOCA)
- GNU_SRC = getopt.c getopt1.c alloca.c
-
- SRC = $(R_SRC) $(F_SRC) $(EXTRA_SRC) $(GNU_SRC) $(CMD_SRC)
- OBJ = $(R_OBJ) $(F_OBJ) $(EXTRA_OBJ) $(GNU_OBJ) $(CMD_OBJ)
-
- rlab$(EXE): $(OBJ)
- $(CC) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $(OBJ) \
- $(R_LIBS) $(PLOT_LIBS) -o rlab$(EXE)
-
- rlabdb: $(OBJ)
- $(CC) $(CFLAGS) $(OBJ) \
- -L/usr/local/lib -ldbmalloc $(R_LIBS) -o rlabdb
-
- Test:
- time ./rlab -qrl ./test
-
- Makefile: Makefile.in config.status
- $(SHELL) config.status
-
- rlab-dist: rlab
- cp rlab.c rlab.c_dist
- cp y.tab.h y.tabh_dist
- cp lex.yy.c lex.yy_c_dist
- cp Makefile Makefile.dist
- cp lp.c lp.c_dist
- cp bl.c bl.c_dist
- cp ode.c ode.c_dist
-
- # Subdirectories to install
- COPYDIR = help rlib toolbox doc examples .rlab config.h
-
- install: rlab mkdir
- -if [ `/bin/pwd` != `(cd ${TOPDIR}; /bin/pwd)` ] ; then \
- tar cf - ${COPYDIR} [A-Z]* | (cd ${TOPDIR}; umask 022; tar xf - ) ;\
- fi
- if test "$(PLOT_PROG)" = "plplot" ; then\
- cp misc/plplot.r ${TOPDIR}/rlib/plot.r;\
- fi
- if test "$(PLOT_PROG)" = "gnuplot" ; then\
- cp misc/gnu_plot.r ${TOPDIR}/rlib/plot.r;\
- fi
- $(INSTALL_PROGRAM) rlab $(bindir)/rlab
- $(INSTALL) doc/rlab.1 $(mandir)/rlab.1
-
- mkdir:
- -mkdir $(TOPDIR) $(RLIBDIR) $(RHELPDIR) $(TOOLBOX)
-
- FRC:
-
- tags: $(SRC)
- etags $(SRC) *.h
-
- depend: $(SRC)
- rm -f make_depends; $(AWK) -f ./misc/depends.awk $(SRC) > make_depends
-
- main.$(O): main.c
- $(CC) $(CFLAGS) $(DEFS) $(DFLAGS) -c main.c
-
- lex.yy.$(O): lex.yy.c config.h
- $(CC) $(CFLAGS) $(DEFS) $(COMMAND_EDIT) -c lex.yy.c
-
- lex.yy.c: scan.l rlab.h code.h y.tab.h list.h util.h mem.h
- if test -n "$(LEX)" ;\
- then $(LEX) -IL scan.l ;\
- sed -f misc/r.sed lex.yy.c > lex.tmp;\
- mv lex.tmp lex.yy.c;\
- else echo 'copying distribution files' ;\
- cp lex.yy_c_dist lex.yy.c ;\
- fi
-
- rlab.$(O): rlab.c
- $(CC) $(CFLAGS) $(DEFS) $(YCFLAGS) -c rlab.c
-
- y.tab.h rlab.c: rlab.y rlab.h mem.h list.h code.h symbol.h scalar.h \
- function.h r_string.h util.h
- echo 'expect 11 shift/reduce conflicts' ;\
- $(YACC) $(YFLAGS) rlab.y ;\
- mv y.tab.c rlab.c ;
-
- mm.$(O): mm.c
- $(CC) -c -O $(DEFS) mm.c
-
- r_plot.$(O):
- $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- $(INC_DIR) r_plot.c
-
- clean:
- rm -f $(OBJ)
-
- fbackup:
- ls -la [A-Z]* $(R_SRC) .rlab rlib help config* examples doc \
- | $(AWK) -f ./misc/sum.awk
- $(TAR) -czvf /dev/rdsk/f05ht [A-Z]* $(R_SRC) .rlab rlib help config* \
- examples doc
-
- blasdist:
- $(TAR) cvf ../DIST/rblas.tar lib/blas-C/Makefile \
- lib/blas-C/*.c lib/blas-C/f2c.h
-
- lapdist:
- $(TAR) cvf ../DIST/rlap-0.30.tar lib/lapack-C/Makefile \
- lib/lapack-C/*.c lib/lapack-C/f2c.h
-
- fftpdist:
- $(TAR) cvf ../DIST/rfft-0.11.tar lib/fftpack-C/Makefile \
- lib/fftpack-C/*.c lib/fftpack-C/f2c.h
-
- ranlibdist:
- $(TAR) cvf ../DIST/rnlib-0.11.tar lib/ranlib-C/Makefile \
- lib/ranlib-C/*.c lib/ranlib-C/f2c.h
-
- code_dump:
- $(CC) -c $(CFLAGS) -DMALLOC_DUMP code.c
-
- #
- # Define SUFFIXES for non-UNIX systems and brain damaged make
- # utilities
- #
-
- .SUFFIXES: $(EXE) .out .$A .ln .$O .c .cc .C .p .f .F .r .y .l .s .S\
- .mod .sym .def .h .info .dvi .tex .texinfo .texi .txinfo\
- .w .ch .web .sh .elc .el
-
- .c.$(O):
- $(CC) -c $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) $<
-
- #
- # If you are using a Fortran compiler (not f2c) then uncomment the
- # second rule, and comment out the 1st
- #
-
- lp.c: lp.f
- if test -n "$(F2C)" ;\
- then $(F2C) -R lp.f ;\
- else echo 'copying distribution files' ;\
- cp lp.c_dist lp.c ;\
- fi
-
- bl.c: bl.f
- if test -n "$(F2C)" ;\
- then $(F2C) -R bl.f ;\
- else echo 'copying distribution files' ;\
- cp bl.c_dist bl.c ;\
- fi
-
- ode.c: ode.f
- if test -n "$(F2C)" ;\
- then $(F2C) ode.f ;\
- else echo 'copying distribution files' ;\
- cp ode.c_dist ode.c ;\
- fi
-
- #
- # F77 = f77
- #.f.$(O):
- # $(F77) -c $(FFLAGS) $<
- #
-
- #
- # Special actions for the Fortran Interface files
- #
- # -DUSE_F2C to use the f2c C => Fortran convention
- # -DUSE_UPPER to use uppercase convention
- # -DUSE_LOWER to use lowercase convention
- # -DUSE_BACK to use trailing underscore convention
- # -DUSE_FRONT to use leading underscore convention
-
- FCONV = -DUSE_F2C
-
- fi_1.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- fi_1.c
-
- fi_2.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- fi_2.c
-
- matop1.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- matop1.c
-
- math_3.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- math_3.c
-
- random.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- random.c
-
- odei.$(O):
- $(CC) -c $(FCONV) $(CFLAGS) $(DEFS) $(SPECIAL_FLAGS) \
- odei.c
-
- #
- # Automatically generated dependencies, do not edit. To regenerate
- # type `make depend' and then edit this file to include the new list
- # of dependencies.
- #
-
- main.$(O) : util.h mem.h version.h rlab.h complex.h btree.h scalar.h getopt.h listnode.h matrix.h code.h list.h symbol.h config.h
- init.$(O) : util.h r_plot.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
- code.$(O) : util.h mem.h y.tab.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h function.h symbol.h config.h bltin.h
- bltin1.$(O) : matop1.h util.h mathl.h mem.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
- bltin2.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
- symbol.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h matrix.h code.h list.h r_string.h function.h symbol.h config.h
- list.$(O) : mem.h rlab.h listnode.h list.h config.h
- listnode.$(O) : mem.h rlab.h listnode.h config.h
- op.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
- opapp.$(O) : util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
- opmat.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
- scalar.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
- scop1.$(O) : mathl.h rlab.h btree.h complex.h scalar.h listnode.h code.h list.h symbol.h config.h bltin.h
- matrix.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h bltin.h
- matop1.$(O) : matop1.h util.h mathl.h mem.h matop2.h bl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h config.h bltin.h
- matop2.$(O) : matop1.h mem.h mathl.h rlab.h complex.h btree.h scalar.h listnode.h matrix.h code.h r_string.h list.h symbol.h fi_1.h fi_2.h config.h bltin.h
- complex.$(O) : mathl.h rlab.h complex.h btree.h listnode.h code.h list.h symbol.h config.h bltin.h
- function.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h function.h symbol.h config.h
- r_string.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h r_string.h list.h symbol.h config.h
- trig.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
- math_1.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
- math_2.$(O) : matop1.h util.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h fi_1.h config.h bltin.h
- math_3.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h fi.h symbol.h fi_1.h fftp.h config.h fi_2.h bltin.h
- mathl.$(O) : mathl.h rlab.h listnode.h config.h
- fi_1.$(O) : util.h mem.h mathl.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
- fi_2.$(O) : matop1.h util.h mem.h matop2.h rlab.h bl.h btree.h complex.h scalar.h listnode.h matrix.h code.h r_string.h list.h fi.h symbol.h lp.h config.h
- rel.$(O) : matop1.h util.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
- mem.$(O) : mem.h rlab.h listnode.h config.h
- util.$(O) : mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h
- btree.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h
- diss.$(O) : rlab.h btree.h listnode.h code.h list.h symbol.h config.h
- print.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h scan.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
- random.$(O) : matop1.h util.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h random.h fi.h symbol.h config.h bltin.h
- rfile.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h symbol.h config.h
- getline.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h scan.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
- mm.$(O) : rlab.h complex.h listnode.h config.h
- misc.$(O) : rlab.h listnode.h config.h
- r_plot.$(O) : util.h mem.h rlab.h btree.h complex.h scalar.h listnode.h code.h matrix.h list.h r_string.h symbol.h config.h bltin.h
- bio.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h symbol.h config.h bltin.h
- odei.$(O) : matop1.h util.h mem.h mathl.h matop2.h rlab.h btree.h complex.h scalar.h scop1.h listnode.h code.h matrix.h list.h r_string.h function.h fi.h odei.h symbol.h lp.h config.h bltin.h
- getopt.$(O) : getopt.h config.h
- getopt1.$(O) : getopt.h config.h
- alloca.$(O) : config.h
-